package huanzhao.erp.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import huanzhao.erp.domain.types.NotificationType;
import lombok.Data;

import java.util.Date;

@Data
public class NotificationVO {
    private Long id;
    /**
     * 发送时间
     */
    private Date sendTime;
    /**
     * 通知内容
     */
    private String content;
    /**
     * 通知类型
     */
    private NotificationType type;

    /**
     * 是否已读
     */
    private Boolean read;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private TaskVO task;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private PhoneVO phone;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ExceptionVO exception;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private FinanceSettlementVO financeSettlement;
}